package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * C端系统-订单主表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_goods_order")
@ApiModel(value = "XhGoodsOrder对象", description = "C端系统-订单主表")
public class XhGoodsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单号")
    private String orderNo;

    private Integer merchantId;

    @ApiModelProperty("用户ID")
    private Integer memberId;

    @ApiModelProperty("前2个商品json描述，结构：{\"id\":5,\"name\":\"xxx\", \"image\":\"xxx\",\"price\":12.2,\"amount\":5,\"money\":61,\"sub_name\":\"xxx\"}")
    private String itemsDesc;

    @ApiModelProperty("状态 1-待付款 2-待发货 3 待收货 4-已完成 5-待评价 6-订单取消 7-已退款")
    private Integer status;

    @ApiModelProperty("状态说明")
    private String message;

    @ApiModelProperty("商品品类数")
    private Integer itemAmount;

    @ApiModelProperty("原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("优惠券id")
    private Integer couponId;

    @ApiModelProperty("优惠券金额")
    private BigDecimal couponMoney;

    @ApiModelProperty("支付金额")
    private BigDecimal payMoney;

    @ApiModelProperty("消耗满电积分")
    private Integer costCoin;

    @ApiModelProperty("送货方式 11-快递发货 12-送货上门 21-线下核销")
    private Integer expressType;

    private Integer expressId;

    @ApiModelProperty("订单备注")
    private String remark;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
